package org.jeecg.modules.dock.entity.mds.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * WMS-MDS发送条料调拨入库请求
 *
 * @author zhoutong
 */
@Data
@ToString(callSuper = true)
public class MaterialTransferAndWarehousingRequestVO extends MdsBaseRequestVO {

    @NotNull(message = "入库区域不能为空")
    @NotBlank(message = "入库区域不能为空")
    @ApiModelProperty("入库区域")
    private String prepareArea;

    @NotNull(message = "卷料明细不能为空")
    @ApiModelProperty("卷料明细")
    private List<Detail> detail;

    /**
     * 卷料明细
     */
    @Data
    public static class Detail implements Serializable {

        @NotNull(message = "卷料批次号不能为空")
        @NotBlank(message = "卷料批次号不能为空")
        @ApiModelProperty("卷料批次号")
        private String batchId;

        @NotNull(message = "卷料宽度不能为空")
        @ApiModelProperty("卷料宽度")
        private BigDecimal width;

        @NotNull(message = "卷料外径不能为空")
        @ApiModelProperty("卷料外径")
        private Integer diameter;

        @NotNull(message = "重量不能为空")
        @ApiModelProperty("重量")
        private Integer weight;

        @ApiModelProperty("卷料放置在一字臂的方向(L:左臂；R:右臂)")
        private String arm;

    }

}
